/**
 *
 * require.js的启动文件，main.js
 * 所有的文件都在这里被启动。
 * */
//各依赖包路径的配置


require.config({

    //预先指定需要加载的路径

    paths: {

        //路径的后缀按照require写法，省略.js
        //主模块
        Engine: "../../Engine/3d/index/engine",
        Hawk: "../../Engine/3d/index/hawk",
        Element: "../../Engine/3d/index/element",
        Api: "../../Engine/3d/index/operating",
        
        //常量配置文件
        config: "../../Engine/3d/data/config",


        //其他模块
        RaytracingRenderer: "../../Engine/3d/plug-in/RaytracingRenderer",
        CanvasRenderer: "../../Engine/3d/plug-in/CanvasRenderer",
        objmodel: "../../Engine/3d/plug-in/objmodel",
        mtl: "../../Engine/3d/plug-in/MTLLoader",
        obj: "../../Engine/3d/plug-in/OBJLoader",

        //事件模块
        Event: "../../Engine/interaction/event/eventObject",
        orbit: "../../Engine/interaction/controls/OrbitControls",
        camMove: "../../Engine/interaction/controls/camerMove",
    
        //动画模块
        Tween:"../../Engine/3d/plug-in/Tween",
        
        Pick: "../../Engine/interaction/behavior/pick",
        Slice: "../../Engine/interaction/behavior/slice",
        Measure: "../../Engine/interaction/behavior/measure",


        //缓存模块
        indexedb: "../../Engine/performance/cache/indexdb",
        ajax: "../../Engine/performance/http/ajax",
        cacheModel: "../../Engine/performance/cache/cacheModel",

        //几何体模块

        //IFC解析
        IFCparse: "../../Engine/interaction/draw/parseIFC",
        Singer: "../../Engine/interaction/draw/singer",
        //GEO解析
        GEOparse: "../../Engine/interaction/draw/parseGeoJson",
    
    
        //Font解析
        Text: "../../Engine/interaction/draw/text",
        /*
        *
        * 页面样式
        *
        * 侧栏+底部按钮+各个小模块
        *
        * */
        jquery: "../../Module/demo181026/js/jquery-1.11.0.min",
        jqueryUI: "../../Module/demo181026/js/jquery-ui.min",
        draggabilly: "../../Module/demo181026/js/draggabilly.pkgd.min",
        angular: "../../Module/demo181026/js/angular.1.4.6.min",
        angularModule: "../../Module/demo181026/js/angularModule",
        pageCSS: "../../Module/demo181026/js/demo"
    },

    shim: {
        "draggabilly": {
            deps: ["jquery"]
        }
    }

});


//函数启动装置

require(["Api", "pageCSS", "RaytracingRenderer","config","Tween"], function (API, bimView) {
    window.Model = new API();
    window.Model.init = function (id,object) {
      var demo = new bimView();
      demo.init(id);
      window.Model.start("Canvas");
  };
    console.log("需要从前端获取到指定的模型地址");

  
});